package park;

import java.util.Scanner;

public class Review {
	
	//성적처리를 JDBC로 구현
	//오라클 데이터베이스를 이용해서
	//성적 데이터 저장,조회,수정,삭제를 처리
	
	//JDBC 객체 및 연결 정보
	
	private static String DRV = "oracle.jdbc.driver.OracleDriver";
	private static String URL = "jdbc:oracle:thin:@112.216.253.124:1521:xe";
	private static String USR = "pjandpd";
	private static String PWD = "pjandpd";

	public static void main(String[] args) {
		ReviewService res = new ReviewServiceImpl();
		
		Scanner sc = new Scanner(System.in);
		
		
		//와일문으로 반복할것
		//2.create method 클릭하기
		switch(sc.nextInt()){
			case 1: res.newReview(); break;
			case 2: res.readReview(); break;
			case 3: res.readOneReview(); break;
			case 4: res.modifyReview(); break;
			case 5: res.removeReview(); break;
			case 0: System.exit(0); break;
			default : System.out.println("올바르지 않은 작업선택입니다");
		}
		
		
	}//main
	
	
/*
	//평점,코멘트 입력
	public static String regrd(){
		Connection conn = null;
		PreparedStatement pstmt = null;
		
		String result = "";
		String sql = " insert into review (reno,regrd,recomment) "
				+ " values (reno.nextval,?,?) ";
		
		
	}
	*/
	
	
	
}//class


